package com.diudiutechnology.www.yadiudiu.yadiudiu.mine.MyActivity;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.diudiutechnology.www.yadiudiu.R;
import com.diudiutechnology.www.yadiudiu.util.view.NewCreditSesameView;

import butterknife.Bind;
import butterknife.ButterKnife;

/**
 * Created by Administrator on 2017/8/30.
 * 信用积分
 */

public class CreditRatingActivity extends Activity implements View.OnClickListener {
    @Bind(R.id.retur)
    LinearLayout retur;



    @Bind(R.id.evaluate)
    TextView evaluate;//评估明细

    @Bind(R.id.instrument)
    NewCreditSesameView instrument;//


    Context context;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_credit_rating);
        ButterKnife.bind(this);
        context=this;
        initView();
    }

    private void initView() {
        retur.setOnClickListener(this);
        instrument.setSesameValues(650);
        evaluate.setOnClickListener(this);
    }

    @Override
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.retur:
                finish();
                break;
            case R.id.evaluate:
                startActivity(new Intent(context ,EvaluateActivity.class));
                break;



        }
    }
}

